//
//  Person2.m
//  复习2
//
//  Created by Justsoso on 16/3/12.
//  Copyright © 2016年 Justsoso. All rights reserved.
//

#import "Person2.h"
#import "Dog.h"
@implementation Person2

- (instancetype)initWithName:(NSString *)name
{
    self = [super init];
    if (self) {
        self.delegateName = name;
    }
    return self;
}

- (void)feed
{
    self.aDog.hungry += 70;
    NSLog(@"%@:喂了下%@",self.delegateName,self.aDog.firstName);
}
@end
